﻿// This work is licensed under the
//     Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
// also known as CC-BY-NC-SA.  To view a copy of this license, visit
//      http://creativecommons.org/licenses/by-nc-sa/3.0/
// or send a letter to
//      Creative Commons // 171 Second Street, Suite 300 // San Francisco, California, 94105, USA.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chinajade.Tribe
{
    [RevisionControlId("$Id$")]
    public static class Tribe
    {
        public static TribeBlacklist        Blacklist = new TribeBlacklist();
        public static TribeDump             Dump = new TribeDump();
        public static TribeLog              Log = new TribeLog();
        public static TribePaths            Paths = new TribePaths();
        public static TribeRevisionControl  RevisionControl = new TribeRevisionControl();


        public static string PackageName
        {
            get { return (_packageName); }

            set {
                _packageName = value ?? "TRIBE_UNNAMED";

                Log = new TribeLog(_packageName);
                Paths = new TribePaths(_packageName);
            }
        }

        private static string _packageName = "TRIBE_UNNAMED";
    }
}